package com.cskaoyan.javase.practice.stage4.entity;

/**
 * @program: little-practice
 * @description: a student object
 * @author: Keyu Li
 * @create: 2021-09-06 21:07
 **/

public class Student {
    private int stuId;
    private String name;
    private String gender;
    private int age;
    private String grade;
    private String tele;
    public final static String[] LEGAL_TELE_HEADS = {"138", "136", "158", "133"};
    public final static int LEGAL_TELE_LENGTH = 11;
    public final static String GRADE_END = "班";

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public void setTele(String tele) {
        this.tele = tele;
    }

    public int getStuId() {
        return stuId;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public int getAge() {
        return age;
    }

    public String getGrade() {
        return grade;
    }

    public String getTele() {
        return tele;
    }

    public Student() {
    }

    public Student(int stuId, String name, String gender, int age, String grade, String tele) {
        this.stuId = stuId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.grade = grade;
        this.tele = tele;
    }

    public void printStu(){
        System.out.println("[ "+this.stuId+", "
                +this.name+", "+this.gender+", "
                +this.age+", "+this.grade+", "
                +this.tele+" ]");
    }
}

